;[INSTALL]
; $sudo apt-get install doxygen goxygen-gui
; $sudo apt-get install doxymacs
; start doxygen in terminal:$doxygen
; start doxygen in gui: $doxywizard
;doxymacs.elc is in /usr/share/emacs-*/doxymacs/,
;copy it out.
(add-to-list 'load-path "~/.emacs.d/doxymacs")
(require 'doxymacs)
(add-hook 'c-mode-common-hook 'doxymacs-mode) 
(defun my-doxymacs-font-lock-hook ()
  (if (or (eq major-mode 'c-mode) (eq major-mode 'c++-mode))
      (doxymacs-font-lock)))
(add-hook 'font-lock-mode-hook 'my-doxymacs-font-lock-hook)
;[COMMENT MODE]
; there are three types to choose: "Qt", "C++", "JavaDoc"
(setq doxymacs-doxygen-style "JavaDoc")